package com.cntcdt.api.utils;

//import com.qiniu.util.Auth;
//import com.qiniu.util.StringMap;


public class QiNiuUtils {

	public static String PHOTO_BUCKET = "newhuotu";
	public static String MESSAGE_BUCKET = "messageimg";
	//3年
	public static String PHOTO_BUCKET_TOKEN="3HmrNQfOit6uWzqrlsSpvtTgjc1PoZFoBu9ebYoV:yYD40Nqh1NKKTH7wonk8PSK0hhQ=:eyJzY29wZSI6Im5ld2h1b3R1IiwiZGVhZGxpbmUiOjE0NzA5MjgwNTR9";
	//3年的token
	public static String MESSAGE_BUCKET_TOKEN="3HmrNQfOit6uWzqrlsSpvtTgjc1PoZFoBu9ebYoV:ZphQT-DCwRct1wAF4uveUAGuTDw=:eyJzY29wZSI6Im1lc3NhZ2VpbWciLCJkZWFkbGluZSI6MTQ3MDkyODE2M30=";
	
	
	public static String PHOTO_HOST = "http://newhuotu.qiniudn.com/";
	public static String MESSAGE_HOST = "http://messageimg.qiniudn.com/";
	
//	public static Auth auth = Auth.create("A8SIAnj_MoLaBFRnPlmdCi78eLSUdY57VbMgFJZy", "dMS_sXCxuoRzvQU6eRvk1zETOWH21IQo2p1RRIsS");
//	
//	private String makeToken(){
//	    return auth.uploadToken("cdt-images", null, 60*60*24*365*2, null, true);
//	}
//	
//	public static void main(String args[]){
//		QiNiuUtils qiniu = new QiNiuUtils();
//		LogUtils.log.info(qiniu.makeToken());
//	}
}
